package com.qijian.maindata.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = false)
@Data
@ToString
public class ProcessOrderDelayVO {


    private Long workId;
    /**
     * 工单编号
     */
    @Excel(name = "工单编号", sort = 1, width = 25)
    @ApiModelProperty(value = "工单编号")
    private String workCode;
    /**
     * 开工令
     */
    @Excel(name = "开工令", sort = 2)
    private String projectMachineNo;


    /**
     * 项目名称
     */
    @Excel(name = "项目名称", sort = 3)
    @ApiModelProperty(value = "项目名称")
    private String projectName;

    /**
     * 物料名称
     */
    @Excel(name = "物料名称", sort = 4)
    @ApiModelProperty(value = "物料名称")
    private String itemName;

    /**
     * 工序名称
     */
    @Excel(name = "工序", sort = 5)
    @ApiModelProperty(value = "工序名称")
    private String processName;


    /**
     * 工时
     */

    @Excel(name = "工时", sort = 6)
    @ApiModelProperty(value = "工序工时")
    private BigDecimal workTime;

    /**
     * 工价
     */
    @Excel(name = "工价", sort = 7)
    @ApiModelProperty(value = "工价")
    private BigDecimal workCost;


    @Excel(name = "计划开始时间", sort = 8, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private Date workStartTime;

    /**
     * 结束时间
     */
    @Excel(name = "计划结束时间", sort = 9, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private Date workEndTime;

    @Excel(name = "派单时间", sort = 10, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "派单时间")
    private Date dispatchTime;

    @Excel(name = "状态", sort = 11, readConverterExp = "0=已完成,1=待派工,2=已派工")
    private String status;

    @Excel(name = "工单管理人", sort = 12)
    @ApiModelProperty(value = "用户姓名")
    private String nickName;
    @Excel(name = "项目经理", sort = 13)
    public String managerName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "验收时间", sort = 14, dateFormat = "yyyy-MM-dd HH:mm:ss")
    public Date checkTime;

    @ApiModelProperty(value = "延期天数")
    @Excel(name = "延期天数", sort = 15, suffix = "天")
    private Integer delayDays;


    @Excel(name = "作业人员", sort = 16)
    @ApiModelProperty(value = "用户姓名")
    private String userNickName;


    /**
     * 工时
     */
    @Excel(name = "工时", sort = 17)
    @ApiModelProperty(value = "工单工时")
    private BigDecimal times;

    /**
     * 工价
     */
    @Excel(name = "工价", sort = 18)
    @ApiModelProperty(value = "工价")
    private BigDecimal prices;

    /**
     * 明细状态
     */
    @Excel(name = "状态", sort = 19, readConverterExp = "0=已验收,1=待接单,2=待报工,4=待验收")
    @ApiModelProperty(value = "工价")
    private String userStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "验收时间", sort = 20, dateFormat = "yyyy-MM-dd HH:mm:ss")
    public Date userCheckTime;


}
